package etec.foxsoft.telas;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JMenuBar;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JSeparator;
import java.awt.Font;
import javax.swing.SwingConstants;
import javax.swing.JTable;
import javax.swing.JButton;
import javax.swing.border.SoftBevelBorder;
import javax.swing.border.BevelBorder;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.JTableHeader;
import javax.swing.table.TableColumn;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JScrollBar;
import javax.swing.border.TitledBorder;
import javax.swing.UIManager;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JScrollPane;

public class Stock extends JFrame {
	private JTextField textField;
	private JTextField textField_2;
	private JTextField textField_4;
	private JTextField textField_5;
	private JTextField textField_6;
	private JTable table;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Stock frame = new Stock();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Stock() {
		setResizable(false);
		setTitle("FoxSoft1.0V");
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 880, 620);
		getContentPane().setLayout(null);
		
		JLabel label = new JLabel("");
		label.setIcon(new ImageIcon(Stock.class.getResource("/Imagens/Logo_Paris.png")));
		label.setBounds(10, 0, 232, 99);
		getContentPane().add(label);
		
		JSeparator separator = new JSeparator();
		separator.setBounds(10, 102, 373, 14);
		getContentPane().add(separator);
		
		JLabel lblEstoque = new JLabel("Estoque");
		lblEstoque.setHorizontalAlignment(SwingConstants.CENTER);
		lblEstoque.setFont(new Font("Tahoma", Font.PLAIN, 20));
		lblEstoque.setBounds(385, 88, 96, 25);
		getContentPane().add(lblEstoque);
		
		JSeparator separator_1 = new JSeparator();
		separator_1.setBounds(481, 102, 373, 14);
		getContentPane().add(separator_1);
		
		JButton button_1 = new JButton("Fechar");
		button_1.setIcon(new ImageIcon(Stock.class.getResource("/Imagens/Fechar.png")));
		button_1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				setVisible(false);
				
				
			}//Deixar Janela Oculta
		});
		button_1.setBounds(739, 558, 115, 23);
		getContentPane().add(button_1);
		
		JButton btnConsultar = new JButton("Consultar");
		btnConsultar.setIcon(new ImageIcon("g:\\\u00CDcones\\duplicate files finder.png"));
		btnConsultar.setBounds(748, 167, 106, 23);
		getContentPane().add(btnConsultar);
		
		JButton btnInserir = new JButton("Inserir");
		btnInserir.setIcon(new ImageIcon("g:\\\u00CDcones\\Enter.png"));
		btnInserir.setBounds(748, 107, 106, 23);
		getContentPane().add(btnInserir);
		
		JLabel lblGnero = new JLabel("Produto");
		lblGnero.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblGnero.setBounds(10, 115, 48, 14);
		getContentPane().add(lblGnero);
		
		textField = new JTextField();
		textField.setColumns(10);
		textField.setBounds(110, 113, 167, 20);
		getContentPane().add(textField);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setModel(new DefaultComboBoxModel(new String[] {"Escolha", "Aliment\u00EDcio", "Descartaveis", "Lou\u00E7as", "Ta\u00E7as", "Talheres", "Limpeza", "Bebidas"}));
		comboBox.setBounds(439, 113, 126, 20);
		getContentPane().add(comboBox);
		
		JLabel lblQuantidade = new JLabel("Quantidade");
		lblQuantidade.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblQuantidade.setBounds(10, 175, 63, 14);
		getContentPane().add(lblQuantidade);
		
		textField_2 = new JTextField();
		textField_2.setColumns(10);
		textField_2.setBounds(110, 173, 167, 20);
		getContentPane().add(textField_2);
		
		JLabel lblProduto = new JLabel("G\u00EAnero");
		lblProduto.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblProduto.setBounds(337, 115, 48, 14);
		getContentPane().add(lblProduto);
		
		JLabel lblDataDeEntrada = new JLabel("Data de entrada");
		lblDataDeEntrada.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblDataDeEntrada.setBounds(337, 145, 106, 14);
		getContentPane().add(lblDataDeEntrada);
		
		JLabel lblDataDeSada = new JLabel("Data de sa\u00EDda");
		lblDataDeSada.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblDataDeSada.setBounds(337, 175, 106, 14);
		getContentPane().add(lblDataDeSada);
		
		JLabel lblPrazoDeValidade = new JLabel("Prazo de validade");
		lblPrazoDeValidade.setFont(new Font("Tahoma", Font.PLAIN, 12));
		lblPrazoDeValidade.setBounds(10, 145, 106, 14);
		getContentPane().add(lblPrazoDeValidade);
		
		textField_4 = new JTextField();
		textField_4.setEnabled(false);
		textField_4.setColumns(10);
		textField_4.setBounds(439, 143, 126, 20);
		getContentPane().add(textField_4);
		
		textField_5 = new JTextField();
		textField_5.setEnabled(false);
		textField_5.setColumns(10);
		textField_5.setBounds(439, 173, 126, 20);
		getContentPane().add(textField_5);
		
		textField_6 = new JTextField();
		textField_6.setColumns(10);
		textField_6.setBounds(110, 143, 167, 20);
		getContentPane().add(textField_6);
		
		JButton btnRetirar = new JButton("Retirar");
		btnRetirar.setIcon(new ImageIcon("g:\\\u00CDcones\\shortcuts fixer.png"));
		btnRetirar.setBounds(748, 137, 106, 23);
		getContentPane().add(btnRetirar);
		
		JButton button = new JButton("");
		button.setIcon(new ImageIcon(Stock.class.getResource("/Imagens/Ajuda.png")));
		button.setBounds(650, 11, 80, 80);
		getContentPane().add(button);
		
		JButton button_2 = new JButton("");
		button_2.setIcon(new ImageIcon(Stock.class.getResource("/Imagens/Sobre.png")));
		button_2.setBounds(774, 11, 80, 80);
		getContentPane().add(button_2);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(10, 216, 843, 331);
		getContentPane().add(scrollPane);
		
		table = new JTable();
		table.setModel(new DefaultTableModel(
			new Object[][] {
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
			},
			new String[] {
				"Produto", "G\u00EAnero", "Quantidade", "Prazo de Validade"
			}
		));
		scrollPane.setViewportView(table);
	}
}
